<?php
/**
 * Created by PhpStorm.
 * User: xlosy
 * Date: 2018/3/27
 * Time: 0:12
 */

namespace app\index\model;


use think\Model;

class Raty extends Model
{

    public function get_raty_count(){
        $raty = new Raty();
        $return = $raty->where('film_id',input('film_id'))->count();
        return $return;
    }

    public  function listALLByFilm_id($film_id){
        $raty = new Raty();
        $return = $raty->where('film_id',$film_id)->select();
        return $return;
    }
}